package com.service;

import com.pojo.Comment;

import java.util.List;

public interface CommentService {

    boolean addComments(Comment comment);

    List<Comment> findAll();
    public List<Comment> findByPage(Integer currentPage,Integer pageSize);
      public List<Comment> findByPageByUsername(Integer currentPage, Integer pageSize,String username);
    public List<Comment> findByPagePidNullByUsername(Integer currentPage, Integer pageSize,String username);

    boolean deleteComment(Integer cId);

    List<Comment> findtargetByUsername(String username);

    List<Comment> findpidNullByUsername(String username);
    boolean addLikeNum(Integer cId);
    boolean redLikeNum(Integer cId);

//     int findIdByUsername(String username);
}
